package com.ruoyi.product.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Coupon {
    private Long couponId;
    private String couponCode;
    private Long couponType;
    private Double couponValue;
    private Double couponMinAmount;
    private String couponStartTime;
    private String couponEndTime;

    // Additional fields to match expected output format
    private String code;
    private Long couponGroupId;
    private Long couponStock;
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date getTime;
    private Long id;
    private Double minAmount;
    private String name;
    private String remark;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    private Long status;
    private Long type;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String useOrderId;
    private Long userId;
    private Double value;
}
